package com.example.zhyq.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.AnnouncementsBeanItem
import com.example.zhyq.R

class AnnouncementAdapter : BaseQuickAdapter<AnnouncementsBeanItem, BaseViewHolder>(R.layout.item_announcement) {
    override fun convert(helper: BaseViewHolder, item: AnnouncementsBeanItem) {
        helper.setText(R.id.tv1,item.title)
        helper.setText(R.id.tv2,item.content)
        helper.setText(R.id.tv3,item.publishTime)
    }
}